//
//  UserDefault.m
//  WeiboAD
//
//  Created by liu guoqiang on 16/7/29.
//  Copyright © 2016年 com.liu.weiboAD. All rights reserved.
//

#import "UserDefault.h"

@implementation UserDefault
+(void)setValue:(id)value forKey:(NSString *)key{
    [[NSUserDefaults standardUserDefaults] setObject:value forKey:key];
}

+(id)getValueOfKey:(NSString *)key{
    if (![[NSUserDefaults standardUserDefaults] objectForKey:key]) {
        return nil;
    }else{
        id object = [[NSUserDefaults standardUserDefaults] objectForKey:key];
        return object;
        
    }
}
@end
